WARNING: This program has a bug, which means we need to fix it! This bug is a logic error.

RULE: To produce different results by calling the same function, you must pass different arguments to the function parameters and use the parameters in the function. Otherwise, the function will always create the same results!

  • Click Run and watch the stage to see what is wrong. Both spirals are identical, but they should be different!
  • Use each parameter name in the correct command within the function so that the bat draws different spirals!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)